<template>
  <div class="home_main_panel">
    <Tabs :tabLen="tabLen">
      <span slot="tabsLeft">{{ $t("lang.关注") }}<i></i></span>
      <span slot="tabsCenter">{{ $t("lang.同城") }}<i></i></span>
      <span slot="tabsRight">{{ $t("lang.推荐") }}<i></i></span>
      <div slot="tabsLeftContent">
        <PullRefresh @refresh="updateItems">
          <div slot="pullRefreshSlot">
            <Follow></Follow>
            <van-list
              v-model="loading"
              :finished="finished"
              :finished-text="$t('lang.已经到底了')"
              :error.sync="error"
              :error-text="this.$t('lang.请求失败，点击重新加载')"
              @load="onLoad"
              v-if="items.length > 0"
            >
              <ItemList :items="items"></ItemList>
            </van-list>
            <div class="itemlist_nodata" v-else>
              <NoContent>
                <div slot="noContentSlot">
                  <UpdateImgButton></UpdateImgButton>
                </div>
              </NoContent>
              <RecommendUser :items="$store.state.user"></RecommendUser>
            </div>
          </div>
        </PullRefresh>
      </div>
      <div slot="tabsCenterContent">
        <PullRefresh @refresh="updateCityWideItems">
          <div slot="pullRefreshSlot">
            <van-list
              v-model="loading"
              :finished="finished"
              :finished-text="$t('lang.已经到底了')"
              :error.sync="error"
              :error-text="this.$t('lang.请求失败，点击重新加载')"
              @load="onLoad"
              v-if="items.length > 0"
            >
              <TwoColumnList :items="CityWideItems">
                <div slot="twoColumnItem" slot-scope="{ item }">
                  <ColumnGroupItem
                    :item="item"
                    name="CONTENT"
                  ></ColumnGroupItem>
                </div>
              </TwoColumnList>
            </van-list>
            <div class="itemlist_nodata" v-else>
              <NoContent></NoContent>
            </div>
          </div>
        </PullRefresh>
      </div>
      <div slot="tabsRightContent">
        <PullRefresh @refresh="updateRecommendItems">
          <div slot="pullRefreshSlot">
            <van-list
              v-model="loading"
              :finished="finished"
              :finished-text="$t('lang.已经到底了')"
              :error.sync="error"
              :error-text="this.$t('lang.请求失败，点击重新加载')"
              @load="onLoad"
              v-if="items.length > 0"
            >
              <ItemList :items="RecommendItems"></ItemList>
            </van-list>
            <div class="itemlist_nodata" v-else>
              <NoContent></NoContent>
            </div>
          </div>
        </PullRefresh>
      </div>
    </Tabs>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  name: "HomeMain",
  components: {
    PullRefresh: () =>
      import(
        /* webpackChunkName:"pullRefresh" */ "../../components/common/pullRefresh.vue"
      ),
    ItemList: () =>
      import(
        /* webpackChunkName: "homeMain" */ "../../components/common/itemList"
      ),
    Follow: () =>
      import(
        /* webpackChunkName: "follow" */ "../../components/common/followNewContent"
      ),
    NoContent: () =>
      import(
        /* webpackChunkName:"noContent" */ "../../components/common/noContent.vue"
      ),
    UpdateImgButton: () =>
      import(
        /* webpackChunkName:"updateImgButton" */ "../../components/common/updateImgButton.vue"
      ),
    RecommendUser: () =>
      import(
        /* webpackChunkName:"recommendUser" */ "../../components/common/recommendUser.vue"
      ),
    Tabs: () =>
      import(/* webpackChunkName:"tabs" */ "../../components/common/tabs.vue"),
    TwoColumnList: () =>
      import(
        /* webpackChunkName:"twoColumnList" */ "../../components/common/twoColumnList"
      ),
    ColumnGroupItem: () =>
      import(
        /* webpackChunkName:"columnGroupItem" */ "../../components/common/columnGroupItem"
      ),
  },
  data() {
    return {
      items: [],
      RecommendItems: [],
      CityWideItems: [],
      isLoading: false,
      loading: false,
      finished: true,
      error: false,
      tabLen: 3,
    };
  },
  created() {
    let that = this;
    that.updateItems(1).then(() => {
      Toast({
        message: that.$t("lang.新动态"),
        position: "top",
      });
      that.updateCityWideItems(1).then(() => {
        that.updateRecommendItems(1).then(() => {});
      });
    });
  },
  methods: {
    updateItems(pageNum, callback) {
      let that = this;
      return new Promise((resolver, reject) => {
        that.items = [
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content:
                    "comment content.adfasdfadf,adfadfadsfa ,adsf,asd,fadf ,adfadsfa.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1600742546371,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: false,
            isFollow: true,
            contentId: "0123456",
            isAd: true,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: false,
            goodCount: 2314,
            isCollection: false,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            isAd: true,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: true,
            contentId: "0123456",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
        ];
        callback && callback();
        resolver();
      });
    },
    updateCityWideItems(pageNum, callback) {
      let that = this;
      return new Promise((resolver, reject) => {
        that.CityWideItems = [
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 5,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content:
                    "comment content.adfasdfadf,adfadfadsfa ,adsf,asd,fadf ,adfadsfa.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1600742546371,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: false,
            contentId: "0123456",
            isAd: true,
            isFollow: false,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: false,
            goodCount: 15,
            isCollection: false,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
        ];
        callback && callback();
        resolver();
      });
    },
    updateRecommendItems(pageNum, callback) {
      let that = this;
      return new Promise((resolver, reject) => {
        that.RecommendItems = [
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content:
                    "comment content.adfasdfadf,adfadfadsfa ,adsf,asd,fadf ,adfadsfa.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1600742546371,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: false,
            contentId: "0123456",
            isAd: true,
            isFollow: false,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: false,
            goodCount: 2314,
            isCollection: false,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            goods: {
              itemId: 1000051166,
              itemName: "长福祥 神池手工老式月饼（散装）60g*10袋",
              identityPrice: 19.9,
              skuPrice: 22.0,
            },
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            isAd: true,
            sellerUrl: "http://www.baidu.com",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
          {
            id: "0123456",
            userId: "0123456",
            userHead:
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595233833221&di=8cf8621bb5bdae4844362dfe99c54191&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fbd315c6034a85edf8c1758e240540923dc547553.jpg",
            nickName: "undefined",
            position: "中国",
            isNewContent: true,
            isFollow: false,
            contentId: "0123456",
            content: [
              {
                contentId: "0123456",
                type: "image",
                url:
                  "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=18296136,276139235&fm=26&gp=0.jpg",
                desc:
                  "adfasfas,adfa,df,,adfasdfasdfasdfafads,adadfa.adfadfadfaf.",
              },
            ],
            tags: [
              "早晨",
              "asdfasdf",
              "电影",
              "娱乐自己",
              "标签测试",
              "线上测试",
            ],
            isGood: true,
            goodCount: 2314,
            isCollection: true,
            comments: {
              list: [
                {
                  userId: "0123456",
                  nickName: "test",
                  content: "comment content.",
                },
                {
                  userId: "0123456",
                  nickName: "adfasdfasd",
                  content: "comment content. adfasdfasdfas",
                },
              ],
              count: 3312,
            },
            lastTime: 1595245074825,
          },
        ];
        callback && callback();
        resolver();
      });
    },
    onLoad() {},
  },
};
</script>
<style lang="less">
@base: 23.44rem;
.home_main_panel {
  overflow: hidden;
  display: block;
  .tabs {
    .tabs_header {
      background-color: #fff;
      margin: 10 / @base 0;
      padding: 0 60 / @base;
      a {
        font-size: 14 / @base;
        border-bottom: 0;
        &:first-child {
          border-right: 0;
        }
        &:last-child {
          border-left: 0;
        }
        &.on {
          border: 0;
          span {
            i {
              display: block;
              background-color: brown;
              width: 20 / @base;
              height: 4 / @base;
              margin: 5 / @base auto 0 auto;
              border-radius: 100 / @base;
            }
          }
          &:first-child {
            span {
              i {
                display: block;
                background-color: brown;
                width: 20 / @base;
                height: 4 / @base;
                margin: 5 / @base auto 0 auto;
                border-radius: 100 / @base;
              }
            }
          }
          &:last-child {
            border-left: 0;
            span {
              i {
                display: block;
                width: 20 / @base;
                height: 4 / @base;
                background-color: brown;
                margin: 5 / @base auto 0 auto;
                border-radius: 100 / @base;
              }
            }
          }
        }
      }
    }
  }
  .itemlist_nodata {
    clear: both;
  }
}
</style>
